package com.qbw.app.module.vehicle.holder;

import android.content.Context;
import android.view.ViewGroup;

import com.qbw.app.R;
import com.qbw.app.databinding.VehicleHolderMarkerBinding;
import com.qbw.core.base.BaseHolder;

/**
 * @author QBW
 * @date 2019/11/15
 */
public class VehicleMarderHolder extends BaseHolder<VehicleMarderHolder.Data, VehicleHolderMarkerBinding> {

    public VehicleMarderHolder(Context context, ViewGroup viewParent) {
        super(context, R.layout.vehicle_holder_marker, viewParent);
    }

    @Override
    public void bindData(int position, Data data) {
        super.bindData(position, data);
        mBinding.tvTitle.setText(data.mTitle);
        mBinding.tvTime.setText(data.mTime);
    }

    public static class Data {
        private String mTitle;
        private String mTime;

        public Data(String title, String time) {
            mTitle = title;
            mTime = time;
        }
    }
}
